import fs from 'fs';

const oldStockJson = fs.readFileSync(`./stock/20250320.transform.json`, 'utf8')

const oldStock = JSON.parse(oldStockJson)['股票数据']

function 主力资金巨额流出散户dde巨大正数股票当日巨幅亏损 () {
  const data = oldStock.filter(item => {
    return (item['主力资金流向']['当日'] < 0) && item['dde散户数量'] > 0 && item['涨跌幅']['当日'] < -5
  })
  data.sort((a, b) => {
    return b['dde散户数量'] - a['dde散户数量']
  })
  const top10 = data.slice(0, 10)
  console.log(IntToString(top10));
}

主力资金巨额流出散户dde巨大正数股票当日巨幅亏损()